package com.it.service;

import com.it.dao.UserDao;
import com.it.dao.impl.UserDaoImpl;

public class UserServiceImpl implements UserService{
    public UserServiceImpl() {
        System.out.println("这是无参构造方法");
    }
    public void inits() {
        System.out.println("这是init");
    }


    public void add() {
        UserDao userDao = new UserDaoImpl();
        userDao.add();
    }

    public void update() {
        UserDao userDao=new UserDaoImpl();
        userDao.update();
    }

    public void destroy() {
        System.out.println("这是destory");//spring多列模式不支持销毁
    }
}
